import request from '@/utils/request'

export const getenterpriseList = (data) => request.get('/park/enterprise', { params: data })

export const addenterprise = (data) => request.post('/park/enterprise', data)

export const delenterprise = (id) => request.delete(`/park/enterprise/${id}`)

export const getenterpriseDetail = (id) => request.get(`/park/enterprise/${id}`)

export const updateenterprise = (data) => request.put('/park/enterprise', {
  id: data.id,
  name: data.name,
  floors: data.floors,
  area: data.area,
  propertyFeePrice: data.propertyFeePrice
})

export const getExpandTable = (id) => request.get(`/park/enterprise/rent/${id}`)
